<?php $this->load->view('tourism/layout/header') ?>
<?php js('skins/tourism', 'user')?>
<?php js('skins/tourism', 'refreshpage', '1')?>
<div class="new-hidden">
    <div class="all-orders newleft scy-left new-table">
        <header class="scy-head am-cf">
            <a href="<?php echo  isset($_SERVER['HTTP_REFERER']) ? 'javascript:history.go(-1);' : site_url('home/ucenter/index'); ?>" class="scy-return">
                <i class="iconfont icon-zuojiantou"></i>
            </a>
            <div class="scy-lebel">全部订单</div>
            <div class="scy-function">
                <li class="header-home">
                    <?php $this->load->view('tourism/layout/nav'); ?>
                </li>
                <div class="scy-buttom scy-search">
                    <i class="iconfont icon-sousuo"></i>
                </div>
            </div>
        </header>
        <div class="scy-object widthMax">
            <ul class="am-cf scy-option">
                <li class="<?php echo $this->input->get('status') <= 0 ? 'active' : '' ?> order-list-nav" data-status="0">
                    <a href="javascript:;">全部</a>
                </li>
                <li class="<?php echo $this->input->get('status') == 1 ? 'active' : '' ?> order-list-nav" data-status="1">
                    <a href="javascript:;">待付款</a>
                </li>
                <li class="<?php echo $this->input->get('status') == 2 ? 'active' : '' ?> order-list-nav" data-status="2">
                    <a href="javascript:;">待发货</a>
                </li>
                <li class="<?php echo $this->input->get('status') == 3 ? 'active' : '' ?> order-list-nav" data-status="3">
                    <a href="javascript:;">待收货</a>
                </li>
                <li class="<?php echo $this->input->get('status') == 4 ? 'active' : '' ?> order-list-nav" data-status="4">
                    <a href="javascript:;">待评价</a>
                </li>
            </ul>
            <div class="scy-waper" id ="wrapper">
                <div class="scy-isory" >
                    <ul class="scy-pullDown" id="orders-list-bd">
                        <?php //$this->load->view('tourism/user/ajaxorderlist') ?>
                    </ul>
                    <?php $this->load->view('tourism/layout/loadmore'); ?>
                </div>
            </div>
        </div>
    </div>
    <div class="all-order-ly newright scy-right new-table">
        <header class="seek2-head">
            <div class="seek2-return page2-return Tonext">
                <i class="iconfont icon-zuojiantou"></i>
            </div>
            <form action="<?php echo site_url('tourism/user/orderSearch') ?>" method="get">
                <div class="seek2-input">
                    <input type="search" name="keyword" value="<?php echo trimall($this->input->get('keyword'));?>" placeholder="请输入您的关键词">
                    <i class="iconfont icon-sousuo"></i>
                </div>
                <div class="seek2-cancel">
                    <button type="submit" class="cancel-submit">搜索</button>
                </div>
            </form>
        </header>
        <div class="page2-shopping">
            <div class="page2-waper">
                <div class="page2-isory">
                    <ul class="am-cf page2-hidth">
                        <?php if(!empty($historyOrder)): ?>
                            <li class="hidth">
                                <div class="am-elim am-cf">
                                    <label><i class="iconfont">&#xe608;</i>历史记录</label>
                                    <button class="am-btn order-history-clear">清除</button>
                                </div>
                                <div class="page2-list am-cf">
                                    <?php foreach($historyOrder as $value): ?>
                                        <a href="<?php echo site_url('tourism/user/orderSearch').'?keyword='.$value ?>"><?php echo $value; ?></a>
                                    <?php endforeach ?>
                                </div>
                            </li>
                        <?php endif ?>
                        <li>
                            <label>为您推荐：</label>
                            <div class="page2-recom am-cf">
                                <?php foreach($localSpecial as $item): ?>
                                    <a href="<?php echo site_url('tourism/goods/info/'.$item->goods_attr_id)?>">
                                        <div class="page2-text">
                                            <img src="<?php echo $this->config->show_image_url($item->images, '300-300');?>">
                                            <div class="page2-price">
                                                <span>¥</span><?php echo $item->shop_price;?>
                                            </div>
                                        </div>
                                        <p><?php echo $item->goods_name;?></p>
                                    </a>
                                <?php endforeach ?>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->load->view('tourism/layout/footer') ?>